package com.chanzany.visitor.case1;

import lombok.NoArgsConstructor;

@NoArgsConstructor
public class Woman extends Person{
    public Woman(String name){
        this.name = name;
    }
    @Override
    public void accept(Action action) {
        action.getWomenResult(this);
    }
}